<%@page import="com.lmpop.trade.ts_role.*" %>
<%@page import="com.lmpop.frame.pojo.*" %>
<%@ page import="java.util.*"%>
<%@ page contentType="text/html;charset=GBK"%>
<%
	Menuinfo ts_menuinfo = new Menuinfo();

	String subsys = "B2B";
	String menu_class = "1";
	ts_menuinfo.setSubsys_code(subsys);
	ts_menuinfo.setMenu_class(menu_class);
	
	Ts_roleInfo ts_menuinfoinfo = new Ts_roleInfo();
	List menuList = ts_menuinfoinfo.getLeftMenuList(ts_menuinfo);
	
	String cust_class = "";
	if (request.getParameter("cust_class") != null) {
		cust_class = request.getParameter("cust_class");
	}
	String cust_id = "";
	if(session.getAttribute("session_cust_id") != null){
		cust_id = session.getAttribute("session_cust_id").toString();
	}	

		if(menuList != null && menuList.size() > 0){
			String menu_id = "",menu_name="";
			for(int i=0;i<menuList.size();i++){
				Hashtable menuMap = (Hashtable)menuList.get(i);
				if(menuMap.get("menu_id")!=null){
					menu_id = menuMap.get("menu_id").toString();
				}
				if(menuMap.get("menu_name")!=null){
					menu_name = menuMap.get("menu_name").toString();
}
%>

<dt style="cursor:pointer;">
	<input type="checkbox" name="one_menu_id" tagI="<%=i%>" id="one_menu_id<%=i%>" value="<%=menu_id%>" onclick="checkSelect1(1,this,<%=i%>)"><%=menu_name%>
</dt>

<dd style="text-align:left;margin-left:14px;display:inline;width:500px;cursor:pointer;">
		<%
			List menutwoList = ts_menuinfoinfo.getMenuInfoByUpMenuId(menu_id);

			if(menutwoList != null && menutwoList.size() > 0){
				String two_menu_id = "",two_menu_name="";
				for(int j=0;j<menutwoList.size();j++){
					Hashtable menutwoMap = (Hashtable)menutwoList.get(j);
					if(menutwoMap.get("menu_id")!=null){
						two_menu_id = menutwoMap.get("menu_id").toString();
					}
					if(menutwoMap.get("menu_name")!=null){
						two_menu_name = menutwoMap.get("menu_name").toString();
					}
%>
<div style="padding-left:20px;">
<input type="checkbox" name="two_menu_id<%=i%>" tagI="<%=i%>" id="two_menu_id<%=i%><%=j%>" value="<%=two_menu_id%>" onclick="checkSelect2(this,<%=i%>,<%=j%>);checkSelect1(2,this,<%=i%><%=j%>)" /><%=two_menu_name%>

	<div id="three_div" style="margin-left:15px">
		<%
					List menu3List = ts_menuinfoinfo.getMenuInfoByUpMenuId(two_menu_id);

					if(menu3List != null && menu3List.size() > 0){
						String three_menu_id = "",three_menu_name="";
						for(int k=0;k<menu3List.size();k++){
							Hashtable menu3Map = (Hashtable)menu3List.get(k);
							if(menu3Map.get("menu_id")!=null){
								three_menu_id = menu3Map.get("menu_id").toString();
							}
							if(menu3Map.get("menu_name")!=null){
								three_menu_name = menu3Map.get("menu_name").toString();
							}
		%>
		<div><input type="checkbox" name="three_menu_id<%=i%>" tagI="<%=i%>" id="three_menu_id<%=i%><%=j%>" value="<%=three_menu_id%>" onclick="checkSelect2(this,<%=i%>,<%=j%>)" />
		<%=three_menu_name%><br/></div>
		<%
						}
					}
		%>	
	</div>
	
</div>

<%
				}
			}
%>	
</dd>



<%			
				

			}
		}

%>

 
   
